/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Utilitarios;

import java.sql.*;

/**
 *
 * @author Omar Heráclides
 */
public class Conexion {
 static  String driver = "org.postgresql.Driver";
 static  String connectString = "jdbc:postgresql://quilla.lab.inf.pucp.edu.pe:1053/metrosoft";
 static  String user = "postgres";
 static  String password = "extinguir";
  static  Statement stmt=null;
 static Connection con = null;
 
public Statement ObtenerConexion() {
 
try{
 Class.forName(driver);
con = DriverManager.getConnection(connectString, user , password);
stmt = con.createStatement();
}

catch ( Exception e ){
 System.out.println(e.getMessage());
 }
 return stmt;
 }
 



    public String getConnectString() {
        return connectString;
    }

    public String getDriver() {
        return driver;
    }

    public String getPassword() {
        return password;
    }

    public String getUser() {
        return user;
    }

   
   
 
}
